//
//  LSMainVC.h
//  LibraryStorm
//
//  Created by sanghv on 3/21/14.
//  Copyright (c) 2014 3ATeam. All rights reserved.
//

#import "LSViewController.h"

@class AFHTTPRequestOperation;

// Type of MenuLeft: Feature (Favorite, Collection ...) and Category
typedef NS_ENUM(NSInteger, LSMenuLeftType){
    LSMenuLeftFavorites = 0,
    LSMenuLeftCollections = 1,
    LSMenuLeftHistories = 2,
    LSMenuLeftDownloads = 3,
    LSMenuLeftCategory = 4,
};

// Sort Type: Recent, Title, Author
typedef NS_ENUM(NSInteger, LSSortType){
    LSSortRecent = 0,
    LSSortTitle = 1,
    LSSortAuthor = 2,
};

// Mode Type: Book on server, book which downloaded and save on local
typedef NS_ENUM(NSInteger, LSModeType){
    LSModeServer = 0,
    LSModeClient = 1,
};

@interface LSMainViewController : LSViewController <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong, readonly) NSMutableArray *books;
@property (nonatomic, strong) NSManagedObjectID *collectionManagedObjectID;
@property (nonatomic, strong) NSManagedObjectID *categoryManagedObjectID;

- (void)showListBook:(LSMenuLeftType)menuType withCategoryType:(int)categoryId;
- (void)showBookDetailWithID:(NSManagedObjectID *)bookId;
@end
